package com.daotingli.backendprograms.AppCongfig;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;


@Component
public class AppCongfig {
    @Getter
    @Value("${spring.application.name}")
    private  String appName;
    @Getter
    @Value("${spring.datasource.url}")
    private  String dbUrl;
    @Getter
    @Value("${spring.datasource.username}")
    private  String dbUserName;
    @Getter
    @Value("${spring.datasource.password}")
    private  String dbPassword;
    @Getter
    @Value("${spring.datasource.driver-class-name}")
    private  String dbDriverClassName;
    @Getter
    @Value("${spring.datasource.type}")
    private  String dbType;
    @Getter
    @Value("${server.port}")
    private  String Port;


}
